An inverted Funnel chart showing a hypothetical company structure
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.funnel.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="500">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var funnel = new RGraph.Funnel({
id: 'cvs',
data: [15,26,54,84,100, 186],
options: {
labels: ['Directors','Regional directors', 'Regional Managers','Managers','Supervisors','Programmers'],
labelsSticks: true,
labelsX: 5,
guttereft: 230,
strokestyle: 'rgba(0,0,0,0)',
textBoxed: false,
shadow: true,
shadowOffsetx: 0,
shadowOffsety: 0,
shadowBlur: 15,
shadowColor: 'gray',
colors: ['red','green','blue','pink','#666']
}
}).draw();
};
</script>